home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 19
/
PCMania19.iso
/
Jogos em Flash
/
CARTAS
/
TAROT.SWF
/
scripts
/
frame_80
/
DoAction.as
Wrap
Text File
|
2003-11-17
|
733b
|
28 lines
_root.ejectcartes.sort();
listnumber = new Array();
t = 0;
while(21 >= t)
{
listnumber[t] = t;
t++;
}
listnumber.splice(parseInt(_root.ejectcartes[1]),1);
listnumber.splice(parseInt(_root.ejectcartes[0]),1);
nbr = Math.floor(Math.random() * getTimer());
trace(nbr);
if(1000 < nbr)
{
nbr /= 100;
}
trace(nbr);
hesite = Math.floor(Math.random() * nbr);
t = 0;
while(hesite >= t)
{
numcarteschoisies[2] = parseInt(listnumber[Math.floor(Math.random() * listnumber.length)]);
t++;
}
trace("numcarteschoisies : " + numcarteschoisies.toString());
eval("_root.cartes.carte" + numcarteschoisies[2]).positiontir = _root.positiontir++;
eval("_root.cartes.carte" + numcarteschoisies[2]).lames._y += 25;